package com.youlai.boot.system.model.dto;

import cn.idev.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 分配菜单给角色
 */
@Data
public class MenusToRoleDTO {

    @Schema(description="角色ID")
    @NotNull(message = "角色ID不能为空")
    private Long roleId;

    @Schema(description="菜单id集合")
    private List<Long> menuIds;
}